﻿using System.Windows.Forms;

namespace DexERP
{
    public class DexGlobal
    {
        public static Ice.Core.Session User { get; set; }
        public static DTO.Connections Database { get; set; }
        public static string ConfigPath = Application.StartupPath + "\\DexConfig.json";
        public static DTO.DexConfig SysCfg { get; set; }
        public static void Init()
        {
            string jsons = Core.Utility.FileHelper.TxtRead(ConfigPath);
            SysCfg =  Newtonsoft.Json.JsonConvert.DeserializeObject<DTO.DexConfig>(jsons);
        }

    }
}
